<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>博客详情</title>
    <link rel="stylesheet" href="css/common.css" />
    <link rel="stylesheet" href="css/details.css" />
    <link id="icon" rel="icon" href="img/logo1.png" type="image/x-icon" />
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
    <script src="js/url_handler.js"></script>
    <link rel="stylesheet" href="editor.md/css/editormd.preview.min.css" />
    <script src="editor.md/editormd.js"></script>
    <script src="editor.md/lib/marked.min.js"></script>
    <script src="editor.md/lib/prettify.min.js"></script>
  </head>
  <body>
    <div class="navigation">
      <img src="img/logo1.png" />
      <div class="title">我的博客系统</div>

      <div class="space"></div>

      <a href="blog_lists.html">主页</a>
      <a id="mine" href="myblog_lists.html">我的博客</a>
      <a id="add" href="blog_add.html">写博客</a>
      <a id="logout" href="blog_login.html">退出登录</a>
    </div>

    <div class="container">
      <div class="container-left">
        <div class="card">
          <img src="img/avatar.png" />
          <h3></h3>
          <a target="_blank" href="https://gitee.com/carefree-state"
            >代码仓库链接</a
          >
          <div class="counter">
            <span class="h">文章</span>
            <span class="h">分类</span>
          </div>

          <div class="counter">
            <span id="count"></span>
            <span>1</span>
          </div>
        </div>
      </div>

      <div class="container-right">
        <div class="article">
          <h3></h3>
          <div class="date"></div>
          <div id="pc" style="opacity: 80%"></div>
        </div>
      </div>
    </div>
    <script>
      var aid = getParamValue("aid");
      function init() {
        // 1. 文章数显示
        jQuery("#count").text(6);
        // 2. 用户信息显示
        jQuery(".card img").attr("src", "img/headurl.jpeg");
        jQuery(".card h3").text("小马");
        jQuery(".card a").attr("href", "https://gitee.com/carefree-state");
        // 3. 文章信息显示
        jQuery(".article h3").text("【Lorem】");
        jQuery(".article .date").text("2023-12-6 11:11:11" + " 阅读量：" + 666);
        editormd.markdownToHTML("pc", {
          markdown:
            "# Lorem\n" +
            "```java\n" +
            'System.out.println("Lorem\\n");\n' +
            "```\n" +
            "Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta fugit ipsa, eaque animi laudantium obcaecati adipisci rem quis mollitia iusto natus, voluptate autem nihil illum. Cupiditate deleniti molestiae sequi quibusdam?\n" +
            "> Lorem ipsum dolor sit amet consectetur adipisicing elit. Dicta fugit ipsa, eaque animi laudantium obcaecati adipisci rem quis mollitia iusto natus, voluptate autem nihil illum. Cupiditate deleniti molestiae sequi quibusdam?",
        });
      }
      init();
    </script>
  </body>
</html>
